/*
 * @Author: czy
 * @Date: 2021-07-09 11:30:35
 * @LastEditTime: 2021-07-09 11:35:10
 */
#ifndef __I386_IO_H__
#define __I386_IO_H__

#define outb(port, value) __asm__ __volatile__("outb %b0,%w1" ::"a"(value), "Nd"(port));
#define inb(port) ({unsigned char data;\
                    __asm__ __volatile__("inb %w1,%0"\
                    : "=a"(data)\
                    : "Nd"(port));\
                    data; })

#endif